package com.forg.dubbox.example.provider.service.impl;

import com.forg.dubbox.example.client.service.ITestService;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * Created by forgkan on 16.1.28.
 */

@Service
public class TestProviderServiceImpl implements ITestService {

    @Override
    public String sayHello(String name) {

        if(StringUtils.isEmpty(name)){
            name = "anonymous";
        }

        return "hello," + name;
    }
}
